import axios from "axios";

const setProjectOver = async (projectId: number) => {
    let url = "/api/project";
    return new Promise(((resolve, reject) => {
        if (status == null) {
            url += "/splitToTask";
            const adminId = sessionStorage.getItem("user.id");
            axios.get(url, {
                params: {
                    projectId
                }
            }).then((response) => {
                resolve = response.data;
            })
        }
    }))
}
export default setProjectOver;
